import Vue from 'vue' //引入vue
import VueRouter from 'vue-router'  //引入路由
//导入各页面组件
import dl from '@/views/dl'
import shou from '@/views/shou'
import ke from '@/views/ke'
import yue from '@/views/yue'
import lian from '@/views/lian'
import yidui from '@/views/yidui'
import ri from '@/views/ri'
import kexi from '@/views/kexi'
import kao from '@/views/kao'
import tao from '@/views/tao'
import fang from '@/views/fang'


Vue.use(VueRouter)  //挂载路由模块

//配置路由
const router = new VueRouter({
  routes: [
    {
      path: '/',
      name: 'dl',
      component: dl
    },
    { path: '/dl', name: 'dl', component: dl },
    { path: '/shou', name: 'shou', component: shou },
    { path: '/ke', name: 'ke', component: ke },
    { path: '/yue', name: 'yue', component: yue },
    { path: '/lian', name: 'lian', component: lian },
    { path: '/yidui', name: 'yidui', component: yidui },
    { path: '/ri', name: 'ri', component: ri },
    { path: '/kexi', name: 'kexi', component: kexi },
    { path: '/kao', name: 'kao', component: kao },
    { path: '/tao', name: 'tao', component: tao },
    { path: '/fang', name: 'fang', component: fang },
  ]
})



//抛出路由
export default router